(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{1296:function(e,t,n){var r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=o||c||Function("return this")(),u=Object.prototype.toString,m=Math.max,x=Math.min,f=function(){return d.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||a.test(e)?l(e.slice(2),n?2:8):s.test(e)?NaN:+e}e.exports=function(e,t,n){var r,s,i,a,l,o,c=0,d=!1,u=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function j(t){var n=r,i=s;return r=s=void 0,c=t,a=e.apply(i,n)}function g(e){return c=e,l=setTimeout(w,t),d?j(e):a}function b(e){var n=e-o;return void 0===o||n>=t||n<0||u&&e-c>=i}function w(){var e=f();if(b(e))return y(e);l=setTimeout(w,function(e){var n=t-(e-o);return u?x(n,i-(e-c)):n}(e))}function y(e){return l=void 0,v&&r?j(e):(r=s=void 0,a)}function N(){var e=f(),n=b(e);if(r=arguments,s=this,o=e,n){if(void 0===l)return g(o);if(u)return l=setTimeout(w,t),j(o)}return void 0===l&&(l=setTimeout(w,t)),a}return t=p(t)||0,h(n)&&(d=!!n.leading,i=(u="maxWait"in n)?m(p(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),N.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=o=s=l=void 0},N.flush=function(){return void 0===l?a:y(f())},N}},8581:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(119)}])},6495:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(5893),s=n(7294),i=n(5675);function a(e){var t=e.artData,n=(e.height,e.mheight,e.maxWidth,e.priority),a=void 0===n||n,l=(0,s.useState)(),o=l[0],c=l[1];return(0,s.useEffect)((function(){t&&c(t)})),(0,r.jsxs)("div",{className:"relative md:block text-white w-full h-full",children:[o&&(0,r.jsx)(i.default,{priority:a,layout:"fill",alt:o&&o.title,src:"".concat("https://cms.complexityweekend.com/assets","/").concat(o.image.id,"?fit=cover&width=1700&height=1700&quality=100"),objectFit:"cover",blurDataURL:"/ph-art.png",className:"animate-fade relative rounded-2xl h-full object-cover transition-all z-20",placeholder:"blur"}),o&&(0,r.jsxs)("div",{className:"absolute text-xs max-w-[200px] px-4 py-4 right-8 top-8 bg-[#212227] rounded z-30",children:[(0,r.jsx)("p",{children:o&&o.title}),(0,r.jsx)("p",{className:"py-2",children:o&&o.description}),(0,r.jsx)("div",{children:(0,r.jsxs)("span",{className:"",children:["Art by:"," ",o&&o.artists.map((function(e,t){return(0,r.jsxs)("span",{className:"text-white",children:[(0,r.jsx)("a",{className:"text-[#30BCED]",href:e.artists_id.url,target:"_blank",alt:"A link to ".concat(e.artists_id.name,"'s website"),children:e.artists_id.name}),t!==o.artists.length-1&&2===o.artists.length&&" and ",o.artists.length>2&&t!==o.artists.length-1&&(t1&&void 0!==arguments[1]?arguments[1]:0,n=(p[e[t+0]]+p[e[t+1]]+p[e[t+2]]+p[e[t+3]]+"-"+p[e[t+4]]+p[e[t+5]]+"-"+p[e[t+6]]+p[e[t+7]]+"-"+p[e[t+8]]+p[e[t+9]]+"-"+p[e[t+10]]+p[e[t+11]]+p[e[t+12]]+p[e[t+13]]+p[e[t+14]]+p[e[t+15]]).toLowerCase();if(!h(n))throw TypeError("Stringified UUID is invalid");return n};var g=function(e,t,n){var r=(e=e||{}).random||(e.rng||x)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=r[s];return t}return j(r)};function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t,n,r,s,i,a){try{var l=e[i](a),o=l.value}catch(c){return void n(c)}l.done?t(o):Promise.resolve(o).then(r,s)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var n=0;n1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"space-y-6 md:space-y-0 md:flex gap-4 ",children:n.map((function(e,t){return(0,s.jsx)("div",{className:"grow-[3]",children:(0,s.jsx)(F,{id:e.id})},t)}))}),(0,s.jsx)("div",{className:"grow-[1]",children:(0,s.jsx)(A.Z,{newsLetterCTA:t})})]}),(1===(null===n||void 0===n?void 0:n.length)||!n)&&(0,s.jsxs)("div",{className:"flex col-span-1 xl:col-span-2 gap-6 flex-wrap md:flex-nowrap",children:[(0,s.jsx)("div",{className:" grow-1 w-full md:w-auto",children:(0,s.jsx)(F,{id:n[0].id})}),(0,s.jsx)("div",{className:"flex-shrink-1",children:(0,s.jsx)(A.Z,{newsLetterCTA:t})})]}),(0===(null===n||void 0===n?void 0:n.length)||!n)&&(0,s.jsx)("div",{className:"grow-[1] mt-6",children:(0,s.jsx)(A.Z,{newsLetterCTA:t})})]})}function W(e){var t,n=e.heroSectionData,r=e.events;return(0,s.jsx)("div",{className:"w-full h-full",children:(0,s.jsxs)("div",{className:"grid grid-cols-2 grid-rows-[2fr, 2fr, 2fr] h-full",children:[(0,s.jsx)("div",{className:"col-start-1 col-span-2 md:col-span-1 row-start-1 row-span-1 md:mr-8",children:(0,s.jsx)(T,{title:n.title,subtitle:n.subtitle,featured:r&&r.featured_events,defaultBody:n.default_body})}),(0,s.jsx)("div",{className:"mt-16 md:mt-0 min-h-[550px] md:min-h-[720px] col-start-1 col-span-2 row-start-3 row-span-1 md:col-start-2 md:row-start-1 md:row-span-3",children:(0,s.jsx)(Z.Z,{artData:n.featured_art,height:900,priority:!0})}),(0,s.jsx)("div",{className:"h-full z-20 col-start-1 col-span-2 row-start-2 row-span-1",children:(0,s.jsxs)("div",{children:[r&&(null===(t=r.featured_events)||void 0===t?void 0:t.length)>0&&(0,s.jsx)("h3",{className:"mt-8 mb-4 text-white h-full flex items-center leading-[1.87rem] font-bold",children:"Events"}),(0,s.jsx)("div",{className:"tab:flex",children:(0,s.jsx)(R,{newsLetterCTA:n.news_letter_cta,events:r&&r.featured_events&&r.featured_events.concat(r.other_events)})})]})})]})})}function z(e){var t=e.data,n=t.title,r=t.body,i=t.subtitle,a=t.image;return(0,s.jsx)("a",{alt:"Link to About Complexity Page",className:"group",href:"/about-complexity",children:(0,s.jsxs)("div",{className:"relative bg-[#2A2C37] rounded-2xl overflow-hidden",children:[(0,s.jsx)("div",{className:"h-56 wic:absolute wic:left-0 wic:h-full wic:w-1/4 p-0 xl:p-9 overflow-hidden",children:(0,s.jsx)("img",{className:" w-full h-full object-cover xl:rounded-2xl",src:"".concat(a?"https://cms.complexityweekend.com/assets/"+a.id:"/info-image.png"),alt:"An image representing Complexity Science"})}),(0,s.jsx)("div",{className:"relative py-12 px-6 lg:py-8 text-white",children:(0,s.jsxs)("div",{className:"wic:ml-auto wic:w-3/4",children:[(0,s.jsx)("h2",{className:"font-semibold text-4xl ",children:n}),(0,s.jsx)("p",{className:"py-6 text-xl",children:i}),(0,s.jsx)("p",{className:"text-base leading-loose",children:r}),(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsxs)("div",{className:"flex items-center gap-2 grow-1 text-[#30BCED] text-sm",children:[(0,s.jsx)("span",{className:"group-hover:underline",children:"Learn More"}),(0,s.jsx)("img",{alt:"Arrow Icon",src:"/anchor-arrow-blue.svg",className:"h-4"})]})})]})})]})})}function M(e){e.index;var t=e.data,n=(0,o.useState)("xx"),r=n[0],i=n[1],a=(0,o.useState)("/save-planet.svg"),l=a[0],c=a[1],d=(0,o.useState)("xx"),u=d[0],m=d[1];return(0,o.useState)((function(){t.tidbit_id&&(i(t.tidbit_id.title),c("".concat("https://cms.complexityweekend.com/assets","/").concat(t.tidbit_id.icon.id)),m(t.tidbit_id.body))})),(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"p-5 bg-[#2A2C37] w-[336px] sm:w-[450px] md:max-w-[336px] text-white h-[300px] md:h-fit inter shadow-md",children:(0,s.jsxs)("div",{className:"relative flex-col h-full",children:[(0,s.jsx)("img",{alt:"Tidbit Icon",className:"max-h-[4rem] object-contain h-1/4",src:"".concat(l)}),(0,s.jsxs)("div",{className:"flex flex-col h-3/4",children:[(0,s.jsx)("h3",{className:"mt-3 mb-2 text-base font-medium leading-6",children:r}),(0,s.jsx)("p",{className:"text-sm leading-6",children:u})]})]})})})}var q=n(1296),U=n.n(q);function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==i[2]?i[2]:{},e.next=3,de(t,{variables:r});case 3:return s=e.sent,e.prev=4,e.abrupt("return",s.data);case 8:e.prev=8,e.t0=e.catch(4),console.log(s);case 11:case"end":return e.stop()}}),e,null,[[4,8]])})))}();var de=function(){var e=ce(a().mark((function e(t,n){var r,s,i,l,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.variables,s=void 0===r?{}:r,i={"Content-Type":"application/json"},e.next=4,fetch("https://cms.complexityweekend.com/graphql",{method:"POST",headers:i,body:JSON.stringify({query:t,variables:s})});case 4:return l=e.sent,e.next=7,l.json();case 7:return(o=e.sent).errors&&console.log(o.errors),e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),ue=n(8198);var me=o.forwardRef((function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 15l-3-3m0 0l3-3m-3 3h8M3 12a9 9 0 1118 0 9 9 0 01-18 0z"}))})),xe=n(7608);function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(e){for(var t=1;t1&&i.map((function(e,t){return(0,s.jsx)("div",{className:"w-auto",children:(0,s.jsx)("button",{onClick:function(e){return function(e){var t=f.current.scrollWidth;f.current.scrollLeft,f.current.scroll({top:0,left:e*(t/i.length),behavior:"smooth"}),d(e)}(t)},className:"rounded-xl w-3 h-3 clearfix ".concat(t==c?"bg-[#30BCED]":"bg-[#37C341]")})},t+"-scroll-dots")}))})]})};n(3454).env.EVENTBRITE;function ve(e){var t=e.title,n=e.associatesData,r=function(e,t,n){for(var r=[],s=0;s2&&(s=2,n=1),j(s),a+n<0?(l(u.length-1),t=r(u,3,u.length-1)[s]):(l(a+n),t=r(u,3,a+n)[s]),h(t.associates_id.description),w(t.associates_id.url)};return(0,s.jsxs)("div",{className:"text-white",children:[(0,s.jsx)(ue.Z,{text:t}),(0,s.jsx)("div",{className:"w-full mx-auto",children:(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"mt-12 w-full relative",children:[(0,s.jsx)("div",{className:"md:hidden",children:(0,s.jsx)(pe,{data:u,objKey:"associates_id"})}),(0,s.jsxs)("div",{className:"hidden md:flex lg:flex justify-between max-w-[1200px] mx-auto items-center",children:[u&&u.length>3&&(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{className:"hidden md:block h-full",children:(0,s.jsx)(me,{onClick:function(e){return y(-1)},className:"w-8 hover:text-[#30BCED] cursor-pointer","aria-hidden":"true"})})}),u&&r(u,u.length>=3?3:u.length,a).map((function(e,t){return(0,s.jsxs)("div",{className:"flex relative lg:my-2 cursor-pointer",style:f&&f!==e.associates_id.description?{opacity:.3}:{opacity:1},onClick:function(e){return function(e){var t=r(u,3,a)[e];j(e),h(t.associates_id.description),w(t.associates_id.url)}(t)},children:[(0,s.jsxs)("div",{className:"flex items-center h-full",children:[(0,s.jsx)("div",{className:"flex items-center justify-center rounded-md text-white",children:(0,s.jsx)("img",{alt:"".concat(e.associates_id.name," Image"),className:"h-[48px] w-[48px] mr-8",style:{marginRight:"".concat(e.associates_id.hide_name?0:2,"rem")},"aria-hidden":"true",src:"https://cms.complexityweekend.com/assets/"+e.associates_id.logo.id+"?cover=contain&width=200&height=200&quality=100"})}),!e.associates_id.hide_name&&(0,s.jsx)("p",{className:"text-lg leading-6 font-medium text-white",children:e.associates_id.name})]}),(0,s.jsx)("div",{className:"h-2 absolute bottom-[-24px] w-full",style:f&&f===e.associates_id.description?{backgroundColor:"#30BCED"}:{backgroundColor:"#FFFFFF"}})]},t+"associate-3")})),u&&u.length>3&&(0,s.jsx)("div",{className:"hidden h-full md:flex items-center",children:(0,s.jsx)(xe.Z,{onClick:function(e){return y(1)},className:"w-8 hover:text-[#30BCED] cursor-pointer","aria-hidden":"true"})})]}),(0,s.jsxs)("div",{className:"mt-16 hidden md:block px-12 justify-center text-center gap-4 items-top",children:[(0,s.jsx)("p",{className:"max-w-3/4 text-xl text-center text-white",children:f&&u&&f}),(0,s.jsxs)("div",{className:"mt-6 whitespace-nowrap flex justify-center gap-2 grow-1 text-[#30BCED] text-sm h-8 items-center",children:[(0,s.jsx)("a",{href:b,rel:"noopener noreferrer",className:"underline text-xl",alt:"Link to Learn More Page",children:"Learn more"}),(0,s.jsx)("img",{alt:"Arrow Icon",src:"/anchor-arrow-blue.svg",className:"h-3"})]})]})]})})})]})}n(3193);var je="https://cms.complexityweekend.com/assets";function ge(e){var t=e.title,n=e.supportersData,r=function(e,t,n){for(var r=[],s=0;s2?(a||l(0),v||j(1),f||h(n[1].supporters_id.description),b||w(n[1].supporters_id.url)):(a||l(0),v||j(0),f||h(n[0].supporters_id.description),b||w(n[0].supporters_id.url)),m(n))}),[]);var y=function(e){j(e),h(u[e].supporters_id.description),w(u[e].supporters_id.url)};return(0,s.jsxs)("div",{className:"text-white",children:[(0,s.jsx)("div",{className:"text-center mb-12",children:(0,s.jsx)(ue.Z,{className:"",text:t})}),(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("div",{className:"block md:hidden w-full",children:(0,s.jsx)(pe,{data:n,objKey:"supporters_id"})}),(0,s.jsxs)("div",{className:"hidden md:block w-full",children:[(0,s.jsxs)("div",{className:"relative mx-auto w-[500px] h-[300px] 2xl:w-[600px] 2xl:h-[350px]",children:[u&&1===u.length&&(0,s.jsx)("div",{children:u.map((function(e,t){return(0,s.jsxs)("div",{className:"absolute my-2 cursor-pointer max-w-[600px]",onClick:function(e){return y(t)},style:{top:0},children:[(0,s.jsx)("div",{className:"flex items-center justify-center rounded-md text-white w-[500px] h-[300px] 2xl:w-[600px] 2xl:h-[350px]] bg-white px-12 py-12",children:(0,s.jsx)("img",{alt:"Associate Image",className:"object-contain h-full","aria-hidden":"true",src:je+"/"+e.supporters_id.logo.id})}),(0,s.jsx)("div",{className:"h-2 absolute bottom-[0px] rounded-bl-md rounded-br-md w-full",style:f&&f===e.supporters_id.description?{backgroundColor:"#30BCED"}:{backgroundColor:"#FFFFFF"}})]},t+e.name)}))}),u&&u.length<3&&u.length>=2&&(0,s.jsx)("div",{children:u.map((function(e,t){return(0,s.jsxs)("div",{className:"absolute cursor-pointer max-w-[600px]",style:f&&{opacity:f!==e.supporters_id.description?.3:1,transform:"".concat(f!==e.supporters_id.description?"scale(0.8)":"scale(1)"),top:0,left:"".concat(0===t?-30:30,"%"),zIndex:f!==e.supporters_id.description?1:10},onClick:function(e){return y(t)},children:[(0,s.jsx)("div",{className:"flex items-center justify-center rounded-md text-white w-[500px] h-[300px] 2xl:w-[600px] 2xl:h-[350px]] bg-white px-12 py-12",children:(0,s.jsx)("img",{alt:"Supporter Image",className:"object-contain h-full","aria-hidden":"true",src:je+"/"+e.supporters_id.logo.id})}),(0,s.jsx)("div",{className:"h-2 absolute bottom-[0px] rounded-bl-md rounded-br-md w-full",style:f&&f===e.supporters_id.description?{backgroundColor:"#30BCED"}:{backgroundColor:"#FFFFFF"}})]},e.name)}))}),u&&u.length>=3&&r(u,u.length>=3?3:u.length,a).map((function(e,t){return(0,s.jsxs)("div",{className:"absolute lg:my-2 cursor-pointer max-w-[600px]",style:f&&f!==e.supporters_id.description?{opacity:.3,transform:"scale(0.7)",left:"".concat(0===t?75:-75,"%")}:{opacity:1,zIndex:100},onClick:function(e){return function(e){var t=0;0===e&&(t=-1),2===e&&(t=1),l(a+t<0?u.length-1:a+t);var n=r(u,3,a+t)[1];h(n.supporters_id.description),w(n.supporters_id.url)}(t)},children:[(0,s.jsx)("div",{className:"flex items-center justify-center rounded-md text-white w-[500px] h-[300px] 2xl:w-[600px] 2xl:h-[350px]] bg-white px-12 py-12",children:(0,s.jsx)("img",{alt:"Supporter Image",className:"object-contain h-full","aria-hidden":"true",src:je+"/"+e.supporters_id.logo.id})}),(0,s.jsx)("div",{className:"h-2 absolute bottom-[0px] rounded-bl-md rounded-br-md w-full",style:f&&f===e.supporters_id.description?{backgroundColor:"#30BCED"}:{backgroundColor:"#FFFFFF"}})]},e.name)}))]}),(0,s.jsxs)("div",{className:"hidden md:block items-top w-full mt-12 text-center",children:[(0,s.jsx)("p",{className:" text-xl text-white w-full text-center",children:f&&u&&f}),(0,s.jsxs)("div",{className:"mt-6 whitespace-nowrap flex justify-center gap-2 grow-1 text-[#30BCED] text-sm h-8 items-center",children:[(0,s.jsx)("a",{alt:"Link to Supporters Page",href:b,rel:"noopener noreferrer",className:"underline text-xl ",children:"Learn more"}),(0,s.jsx)("img",{alt:"Arrow Icon",src:"/anchor-arrow-blue.svg",className:"h-3"})]})]})]})]})]})}var be=n(8508),we=n(9688);function ye(e,t,n){for(var r=[],s=0;s